package cn.lg.soar.common.enums;

import cn.lg.soar.common.annotations.DictDefine;
import cn.lg.soar.common.data.dict.IDict;
import com.baomidou.mybatisplus.annotation.IEnum;

/**
 * @author luguoxiang
 * 开源项目：https://gitee.com/lgx1992/lg-soar 求star！请给我star！请帮我点个star！
 */
@DictDefine(name = "请求方式")
public enum HttpMethodEnum implements IDict<Integer>, IEnum<Integer> {

    GET(0x01),
    HEAD(0x02),
    POST(0x04),
    PUT(0x08),
    PATCH(0x10),
    DELETE(0x20),
    OPTIONS(0x40),
    TRACE(0x80);
    HttpMethodEnum(int value){
        this.value = value;
    }

    private final int value;
    @Override
    public Integer getValue() {
        return this.value;
    }
    @Override
    public String getLabel() {
        return this.name();
    }

}
